package cn.wen.yaling.xo.dao;

import cn.wen.yaling.commons.entity.ImageEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 
 * 
 * @author FY
 * @email 932043654@qq.com
 * @date 2022-08-13 02:07:37
 */
@Mapper
@Component
public interface ImageDao extends BaseMapper<ImageEntity> {

    /**
     * 获取评论头像列表
     * @return
     */
    List<ImageEntity> getCommentAvatarList();

    /**
     * 批量修改图像的状态为删除
     * @param imageIds
     * @param status
     * @return
     */
    boolean updateBatchImageByIds(@Param("imageIds") List<Integer> imageIds, @Param("status") int status);
}
